% calculates frequency of occurances
% to be used with PDF estimations
% latest date 10.01.2003
% returns the number of elements in X which
% fall in the intervals specified in int
function[a] = bin(X,int),

l = length(int);

for i = 1:l-1,
K = find(X>int(i));
a(i) = length(find(X(K)<int(i+1)));
end;

